-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added OpenGL3 example for SDL2 #356
Conversation
…pliced the GLFW OpenGL examples on top of the SDL example to create an option that works for me. Could be useful for others.
Thanks! could you clarify what wouldn't work with the GL2 code? |
I'm still new to openGL so this might be anecdotal evidence. When I had nothing else in my project apart from the IMGUI and SDL2 code, it would render fine. As soon as I started adding OGL3.3 rendering code into my program the gui disappeared. If I remember correctly OpenGL 3 onwards depreciated lots of OpenGL 2 rendering stuff, so the old 2-based code wouldn't render in a more modern context. |
Thanks, I have now merged this & done a few fixes to match the existing GL3 example code. |
Cool, happy to help! |
Previous SDL implementation didn't work for me once I started using modern SDL code (it worked if I ripped out all my rendering code).
Spliced the GLFW OpenGL examples on top of the SDL example to create an option that works for me, could be useful for others.